<include file="public@header" />
</head>
<style type="text/css">
    .file-wrap{
        height:34px;
        width: 82px;
        position: relative;
        display: inline-block;
        text-align: center;
        line-height: 34px;
        overflow: hidden;
        font-size: 14px;
        cursor: pointer;
        color: #fff;
        vertical-align: middle;
        background-color: #1a242f;
        border-color: #161f29;
    }
    .file-wrap input{
        position: absolute;
        height: 40px;
        z-index: 2;
        right: 0;
        top: 0;
        filter: alpha(opacity=0);
        -moz-opacity: 0;
        opacity: 0;
        cursor: pointer;
        font-size: 16px;
    }
</style>
<body>
	<div class="wrap">
		<ul class="nav nav-tabs">
			<li><a href="{:url('advance/index')}">预播列表</a></li>
			<li class="active"><a>预播修改</a></li>
		</ul>
		<form method="post" class="form-horizontal js-ajax-form margin-top-20" action="{:url('advance/editPost')}">
			<div class="form-group">
				<label for="input-s_name" class="col-sm-2 control-label"><span class="form-required">*</span>姓名</label>
				<div class="col-md-6 col-sm-10">
                    <input type="hidden" name="id" value="{$live.id}">
					<input type="text" class="form-control" id="input-s_name" value="{$star.s_name}"disabled>
				</div>
			</div>
			<div class="form-group">
				<label for="input-l_booked" class="col-sm-2 control-label"><span class="form-required">*</span>预定人数</label>
				<div class="col-md-6 col-sm-10">
					<input type="number" class="form-control" id="input-l_booked" value="{$live.l_booked}" disabled>
				</div>
			</div>
			<div class="form-group">
				<label for="input-l_package" class="col-sm-2 control-label"><span class="form-required">*</span>红包</label>
				<div class="col-md-6 col-sm-10" id="input-l_package">
					<select class="form-control" name="l_package">
						<option value="10" <if condition="$live['l_package'] eq 10" >selected </if>>有红包</option>
						<option value="20" <if condition="$live['l_package'] neq 10" >selected </if>>无红包</option>
					</select>
				</div>
			</div>
			<div class="form-group">
				<label for="input-l_gift" class="col-sm-2 control-label"><span class="form-required">*</span>礼品</label>
				<div class="col-md-6 col-sm-10" id="input-l_gift">
					<select class="form-control" name="l_gift">
						<option value="10" <if condition="$live['l_gift'] eq 10" >selected </if>>有礼品</option>
						<option value="20" <if condition="$live['l_gift'] neq 10" >selected </if>>无礼品</option>
					</select>
				</div>
			</div>
			<div class="form-group">
				<label for="input-l_date" class="col-sm-2 control-label"><span class="form-required">*</span>开播日期</label>
				<div class="col-md-6 col-sm-10">
					<input type="text" class="form-control js-bootstrap-date" id="input-l_date" name="l_date" value="{$live.l_date}">
				</div>
			</div>
			<div class="form-group">
				<label for="input-l_startime" class="col-sm-2 control-label"><span class="form-required">*</span>开播时间</label>
				<div class="col-md-6 col-sm-10">
					<input type="time" class="form-control" id="input-l_startime" name="l_startime" value="{:substr($live['l_startime'],0,5)}">
				</div>
			</div>
			<div class="form-group">
				<label for="input-l_status" class="col-sm-2 control-label"><span class="form-required">*</span>状态</label>
				<div class="col-md-6 col-sm-10" id="input-l_status">
					<select class="form-control" name="l_status">
						<option value="10" <if condition="$live['l_status'] eq 10" >selected </if>>开启</option>
						<option value="20" <if condition="$live['l_status'] eq 20" >selected </if>>关闭</option>
					</select>
				</div>
			</div>
			<div class="form-group">
				<label for="input-l_top" class="col-sm-2 control-label"><span class="form-required">*</span>置顶</label>
				<div class="col-md-6 col-sm-10" id="input-l_top">
					<select class="form-control" name="l_top">
						<option value="10" <if condition="$live['l_top'] eq 10" >selected </if>>已置顶</option>
						<option value="20" <if condition="$live['l_top'] eq 20" >selected </if>>未置顶</option>
					</select>
				</div>
			</div>
			<div class="form-group">
				<div class="col-sm-offset-2 col-sm-10">
					<button type="submit" class="btn btn-primary js-ajax-submit">修改</button>
				</div>
			</div>
		</form>
	</div>
	<script src="__STATIC__/js/admin.js"></script>
</body>
</html>